let Mock = require("mockjs")
let { payName } = require("./../until");

module.exports = {
    //支付管理页
    payFun(req) {  //可以改用Json文件 这里是随机数据，暂未做加密
        //接受用户的id  eg: req.userId 
        // console.log('req', req)
        let data = [];
        for(let i = 0; i < 7; i++) {
            let pu = {
                payNo: Mock.mock('@natural(700001, 700100)'),
                payName: payName()[i],
            }
            data.push(pu);
        }
        return {
            code: 200,
            message: "成功",
            data: data 
        }
    },
    //重置密码

    //添加用户
    
}